package com.haierp.service.purchase;

import java.util.List;

import com.baomidou.framework.service.ISuperService;
import com.haierp.model.purchase.PurchaseStorage;
import com.haierp.model.purchase.Receipt;
import com.haierp.util.JsonPageResult;
import com.haierp.util.JsonResult;
import com.haierp.vo.PurchaseStorageVO;

public interface IPurchaseStorageService extends ISuperService<PurchaseStorage>{
	
	/**
	 * 入库
	 */
	void putInStorage(PurchaseStorage ps,List<Receipt> recs);
	
	
	/**
	 * 手动入库
	 * @param ps
	 */
	void addPurchaseStorage(PurchaseStorage ps);
	
	
	/**
	 * 更新
	 * @param ps
	 */
	void updatePurchaseStorage(PurchaseStorage ps);
	
	/**
	 * 确认入库,普通修改确认入库
	 * @param ps
	 */
	void confirmPurchaseStorage(PurchaseStorage ps);
	
	
	/**
	 * 确认入库,新增确认入库
	 * @param ps
	 */
	void addConfirmPurchaseStorage(PurchaseStorage ps);
	
	
	
	PurchaseStorage queryPurchaseStorage(Long purStoId,Long companyId);
	
	JsonPageResult<List<PurchaseStorage>> queryPurStorages(PurchaseStorageVO psVO);
	
	/**
	 * 删除入库单
	 * @param ps
	 */
	void deletePurchaseStorage(PurchaseStorage ps);


	JsonResult<String> mergePurchaseStorage(String ids,Long companyId);
}
